package cn.glc.daily.life.infrastructure.dao;

import cn.glc.daily.life.infrastructure.po.RolePermissionPo;
import cn.glc.daily.life.model.to.RolePermissionTo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 角色-权限
 *
 * @author simon
 * @date 2020/11/9 9:56
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
public interface RolePermissionDao extends BaseMapper<RolePermissionPo> {
    /**
     * 查询角色已有的权限
     *
     * @param roleId
     * @return
     */
    RolePermissionTo findAllByRoleId(@Param("roleId") String roleId);
}
